﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hrm.Core
{
    public class Department : Entity
    {

        [MaxLength(50)]
        public string Name { get; set; }

        public int ParentId { get; set; }

        public int Order { get; set; }

        public Company Company { get; set; }

        public ICollection<Staff> Staffs { get; set; }
    }
}
